﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AutofacDemo
{

    public interface IDAL
    {
        string Insert(string commandText);
    }


    public class SqlDAL : IDAL
    {
        public string Insert(string commandText)
        {
            return $"Sql执行了SQL:{commandText}";
        }
    }

    public class OracleDAL : IDAL
    {
        public string Insert(string commandText)
        {
            return $"Oracle执行了SQL:{commandText}";
        }
    }
}
